﻿@model CampusSite.Models.LogOnModel
@{
    ViewBag.Title = "Log On";
    Layout = "~/Views/Shared/_LoginLayout.cshtml";
}
<h2>
    Inicio de Sesi&oacute;n</h2>
@*<p>
    Por favor ingrese su usuario y clave. 
</p>*@
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>


@using (Html.BeginForm())
{
    <div class="hero-unit">
        <fieldset>
            <legend>Por favor ingrese su usuario y clave. </legend>
            <div class="control-group">
                <div class="control-label">
                    @Html.LabelFor(m => m.UserName)
                </div>
                <div class="controls">
                    @Html.TextBoxFor(m => m.UserName)
                    @Html.ValidationMessageFor(m => m.UserName)
                </div>
            </div>
            <div class="control-group">
                <div class="control-label">
                    @Html.LabelFor(m => m.Password)
                </div>
                <div class="controls">
                    @Html.PasswordFor(m => m.Password)
                    @Html.ValidationMessageFor(m => m.Password)
                </div>
            </div>
            <div class="editor-label">
            <label class="checkbox">
                @Html.CheckBoxFor(m => m.RememberMe)
                @Html.LabelFor(m => m.RememberMe)
                </label>
            </div>
            <p>
                <input class="btn btn-primary" type="submit" value="Entrar" />
            </p>
            @* <div class="form-search well">
            <label>@Html.ActionLink("Regístrese", "Register") si no tiene una cuenta.</label>
            </div>*@

           
        </fieldset>
        @Html.ValidationSummary(true, "Por favor verifique lo siguiente e intente de nuevo.", new { @class="alert alert-error"})
    </div>
}
